<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <canvas id="canvas"></canvas>

    <script>
        let canvas = document.getElementById("canvas");
        let ctx = canvas.getContext("2d");

        // ctx.fillRect(0, 0, 100, 100)
        // ctx.strokeStyle = 'red'
        // ctx.strokeRect(0, 0, 100, 100)

        // ctx.fillRect(0, 0, 100, 100)
        // ctx.clearRect(0, 0, 50, 50)

        // ctx.beginPath();  // 开始一个路径的描述
        // ctx.arc(150, 75, 50, 0, 2 * Math.PI);
        // ctx.fillStyle = 'green'
        // ctx.fill()  

        ctx.beginPath();
        ctx.arc(150, 75, 50, 0, 2 * Math.PI)
        ctx.strokeStyle = 'blue'
        ctx.lineWidth = 6
        ctx.stroke()

    </script>
</body>
</html>